<html>
<head>
     <title>Help: sublist</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <h4>sublist</h4>Subplot indices for portrait/landscape 2 ranks loops plot
                  <br><small>Last modified: 25-Sep-2009 16:28:41</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/graphicxPlots/sublist.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  <br>% sublist Subplot indices for portrait/landscape 2 ranks loops plot<br>%<br>% plist = sublist(n1,n2,orient)<br>% <br>% Inputs:<br>%	n1,n2: two integers<br>% 	orient can be:<br>%		'portrait' or 1<br>%		'landscape' or 0<br>% Outputs:<br>% 	plist is n1*n2 table of subplot indices<br>%<br>% Note that Portrait/landscape reference is for nv > ns<br>%<br>% Exampe:<br>% ns=3; nv=4;<br>% plist1 = sublist(ns,nv,'landscape');iw1=ns;jw1=nv;<br>% plist2 = sublist(ns,nv,'portrait');iw2=nv;jw2=ns; <br>% ipl = 0;<br>% for iset = 1 : ns<br>%	for ivar = 1 : nv<br>%		ipl = ipl + 1;<br>%		figure(1);subplot(iw1,jw1,plist1(ipl));title(sprintf('Set:%i, Var:%i',iset,ivar));<br>%		figure(2);subplot(iw2,jw2,plist2(ipl));title(sprintf('Set:%i, Var:%i',iset,ivar));<br>%	end %for ivar<br>% end %for iset<br>%<br>% Created: 2009-08-06.
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
